import request from '@/utils/request'

// 查询出行类型列表
export function listTriptype(query) {
  return request({
    url: '/system/triptype/list',
    method: 'get',
    params: query
  })
}

// 查询出行类型详细
export function getTriptype(tripTypeId) {
  return request({
    url: '/system/triptype/' + tripTypeId,
    method: 'get'
  })
}

// 新增出行类型
export function addTriptype(data) {
  return request({
    url: '/system/triptype',
    method: 'post',
    data: data
  })
}

// 修改出行类型
export function updateTriptype(data) {
  return request({
    url: '/system/triptype',
    method: 'put',
    data: data
  })
}

// 删除出行类型
export function delTriptype(tripTypeId) {
  return request({
    url: '/system/triptype/' + tripTypeId,
    method: 'delete'
  })
}

